#!/bin/bash
DIR=`dirname $0`
adb wait-for-device
adb root
adb wait-for-device
adb remount
adb push $DIR/su /system/xbin/
adb push $DIR/su /system/bin/
adb shell chmod 4755 /system/xbin/su
adb shell chmod 4755 /system/bin/su
adb push $DIR/Superuser.apk /system/app
echo "Press to reboot your phone"
read
adb reboot

